/**
 * teComponents Package initially created by Dagny Jackson
 * includes the initial elements:
 * teJButton
 * teJComboBox
 * teJFrame
 * teJLabel
 * teJLabelWarning
 * teJList
 * teJScrollBar
 * teJScrollPane
 * teJTable
 * teJTexfield
 * 
 */

package teComponents;

import java.util.Vector;

import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;
import javax.swing.border.BevelBorder;

public class teJComboBox extends JComboBox {

    private ComboBoxModel cbModel;
    
    public teJComboBox() 
    {
		super();
		initGUI();
    }
    
    //vector constructor created by Lidiya
    public teJComboBox(Vector<String> lst) 
    {
		super();
		cbModel = new DefaultComboBoxModel(lst);
		this.setModel(cbModel);
		initGUI();
    }
    
    private void initGUI() 
	{
		try 
		{
			this.setBounds(120, 49, 250, 28);
			this.setBackground(new java.awt.Color(243,250,218));
			this.setBorder(BorderFactory.createEtchedBorder(BevelBorder.RAISED, new java.awt.Color(255,255,255), new java.awt.Color(92,69,5)));
			this.setFont(new java.awt.Font("SansSerif",0,12));
			this.setForeground(new java.awt.Color(43,32,3));
			this.setPreferredSize(new java.awt.Dimension(250, 28));
		} 
		catch (Exception e) 
		{
			e.printStackTrace();
		}
	}
	
}
